#ifndef _I_DISPLAY_H
#define _I_DISPLAY_H
#include "IDevice.h"
/**
 * @brief 
 * ICamera *cam =  Bean<ICamera>();
 * IScreen *screen = Bean<IScreen>();
 * cam->bind(screen);
 * cam->start();
 * while(isBreak) {
 *   IBuffer *buffer = cam->get();
 *   screen->put(buffer);
 * }
 * cam->stop();
 * ******************************************
 * <bean name="camera">
 * 
 * </bean>
 * 
 * <bean name="qnxScreen">
 *      <stream implemation="ScreenStream"/>
 * </bean>
 */
class IScreen : public IDevice {
public:
    virtual IBuffer *buffer(int width,int height) = 0;
};

#endif